package com.charm.codes;

import android.app.Application;
import android.content.Context;
import android.support.multidex.MultiDex;
import android.widget.LinearLayout;

/**
 * @author tools
 * @date 2017/12/11
 */

public abstract class FkApplication extends Application {
    private static FkApplication mInstance;
    /**
     * 集成/组件
     */
    public static boolean isIntegrated;

    @Override
    public void onCreate() {
        super.onCreate();
        mInstance = this;
        init();
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

    public static FkApplication getInstance() {
        return mInstance;
    }

    public abstract void init();

}
